import req from "../utils/http.js"
//轮播图
export function getCarousel(){
    return req.get(`api/weChat/applet/course/banner/list?number=5`)
}
//直播
export function LiveStreaming(){
    return req.post(`/api/pc/liveCourseInfo/list`)
}
// 课程列表
export function courselist(type,pageNum,pageSize){
   let parmt = new URLSearchParams()
    parmt.append("type",type)
    parmt.append("pageNum", pageNum)
    parmt.append("pageSize", pageSize)
    return req.post(`/api/weChat/applet/course/list/type`,parmt)
}

//课程头条
export function courselistto(){
    const parmt = {}
    return req.post(`/api/weChat/applet/article/list`,parmt)

}
//底部链接
export function SiBottom(){
    return req.post(`/api/system/dict/data/list/open?dictType=blogroll&`)
}

// 课程专题
export  function courselistt(){
    const parmt = {
        "enable": 1
    }
    return req.post(`/api/weChat/applet/subject/list`,parmt)
}

export  function bufferpage(courseId){
    return req.get(`/api/pc/course/detail/${courseId}`)
}